﻿using System.Collections;
/*
 * User: Ert
 * Date: 6/30/2012
 * Time: 11:43 AM
 */

namespace TalkScheduler
{
	public class Database
	{
		private static Hashtable speakers = new Hashtable();
		
		public static void AddTalk(DateTime talkTime, Speaker speaker)
		{//TODO add check for sunday talks only.
			speakers[talkTime] = speaker;
		}
		
		public static void GetTalk(DateTime talkTime)
		{
			return speakers[talkTime] as Speaker;
		}
	}
}